<%@ page language="java" pageEncoding="utf-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>企业日常事务管理系统-身份识别</title>
    <link href="css.css" type="text/css" rel="stylesheet" media="all"/>
    <script src="menu.js" type="text/javascript"></script>
</head>

<body>
<div id="topexplain">企业日常事务管理系统，为企业内部通信提供最简便的服务！</div>
<div id="topmenu"><img src="images/banner.jpg" width="970" height="147"/></div>
<div id="bookmenu">
    <div class="jsmenu" id="jsmenu">
        <ul>
            <li class="normal"><a href="index.jsp" urn="#jsmenu1" rel="conmenu">首页</a></li>
            <li class="normal"><a urn="jsmenu2" rel="conmenu" href="GetMessageList">消息列表</a></li>
            <li class="normal"><a urn="jsmenu3" rel="conmenu" href="publishNewMsg.jsp">发布新消息</a></li>
            <li class="active"><a urn="default_Info" rel="conmenu" href="statusRecognise.jsp">身份识别</a></li>
        </ul>
    </div>
    <div id="conmenu"></div>

</div>

<div id="indexfirst" style="min-height: 420px">
    <div id="place">当前位置：[<a href="index.jsp">首页</a>] - [员工身份识别]</div>
    <div id="menunav2" style="min-height: fit-content">
        <div class="tit">
            <h1>员工身份识别</h1>
        </div>
        <div id="shenfenshibie">
            <span style="color: red; ">${requestScope.error }</span>
            <form id="LoginForm" action="" method="post">
                <div id="inputinfo">
                    <p>员工编号：<input type="text" name="employeeID" value="${param.employeeID}"/></p>
                    <p>&nbsp;</p>
                    <p>系统口令：<input type="password" name="password"/></p>
                    <p>&nbsp;</p></div>
                <p id="buttonp"><input type="button" value="提交" onclick="denglu()"/>
                    <input type="reset" value="重置"/>
                    <input style="float: right" type="button" value="注册" onclick="showRegisterInfo()"/>
                </p>
            </form>
        </div>
    </div>
</div>
<div id="indexsec"></div>
<div class="copyright">
    <ul>
        <li></li>
        <li>企业日常事务管理系统 &nbsp;&copy;2016-2017</li>
    </ul>
</div>
<div class="end"></div>
<script type=text/javascript>
    startajaxtabs("jsmenu");
    var iTab = GetCookie("nets_jsmenu");
    iTab = iTab ? parseInt(iTab) : parseInt(Math.random() * 5);
    if (iTab != 0) getElement("jsmenu").getElementsByTagName("h1")[iTab].LoadTab();
    iTab++;
    if (iTab > 4) iTab = 0;
    SetCookie("nets_jsmenu", iTab, 365);

    function getElement(aID) {
        return (document.getElementById) ? document.getElementById(aID)
            : document.all[aID];
    }
</script>
<script type="text/javascript">
    function denglu() {
        document.forms.LoginForm.action = "StatusRecogniseAction";
        document.forms.LoginForm.submit();
    }

    function zhuce() {
        document.forms.LoginForm.action = "UserRegister";
        document.forms.LoginForm.submit();
    }

    var first = true

    function showRegisterInfo() {
        if (first) {


            var inputdiv = document.getElementById("inputinfo");
//        var form=document.getElementById("LoginForm");
            var textArray = ["姓名：    ", "性别：    ", "生日：    ", "办公电话：", "住址：    "];
            var typeArray = ["text", "text", "date", "text", "text"];
            var nameArray = ["employeeName", "eGender", "eBirthDay", "eOfficePhone", "eAddress"];
            for (var i = 0; i < nameArray.length; ++i) {
                var eme = document.createElement("p");
                var node = document.createTextNode(textArray[i]);
                eme.appendChild(node);
                var inputele = document.createElement("input");
                inputele.type = typeArray[i];
                inputele.name = nameArray[i];
                eme.appendChild(inputele);
                inputdiv.appendChild(eme);

                var nbsp = document.createElement("p");
                nbsp.innerHTML = "&nbsp;";
                inputdiv.appendChild(nbsp);

//            form.appendChild(eme);
            }
            var buttonp = document.getElementById("buttonp");
            var ele = document.createElement("input");
            ele.type = "button";
            ele.value = "提交注册";
            ele.id = "submitRegister";
            ele.onclick = zhuce;
            buttonp.appendChild(ele);
            var count=buttonp.childElementCount-1;
            for (var i = 0; i !== count ; ++i) {
                buttonp.removeChild(buttonp.childNodes[i]);
            }

            var total = document.documentElement.clientHeight;
            colheight = total - 100 - ele.offsetTop;
            document.getElementById("menunav2").style.height = colheight + "px";


            first = false;

        }
    }


</script>
</body>
</html>

